﻿using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class LevelController : MonoBehaviour
{
	public LevelManageer levelManageer;
	public GameMangagers gameMangagers;
	// Use this for initialization
	void Start()
	{
		levelManageer = GetComponent<LevelManageer>();
		gameMangagers = GameObject.Find("GameMaager").GetComponent<GameMangagers>();
	}

	// Update is called once per frame
	void Update()
	{

	}

	public void localBTnEvent(string Id)
	{
		gameMangagers.LoadCourse(Id);
		//Debug.Log(gameMangagers.spr.ToString());
		//gameMangagers.CreatPanel("CoursePanel");
		//GameObject.Find("CoursePanel").GetComponent<CourseManager>().Init();
		//GameObject.Find("CoursePanel").GetComponent<CourseView>().TittleText.text = AccountModel.Instances.count[int.Parse(Id) - 1];
		//this.gameObject.SetActive(false);
	}

	public void RangeBtnEvent(string Id)
	{

		StartCoroutine(gameMangagers.LoadCourse(Id));
		// this.gameObject.SetActive(false);
	}
}